<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>电商网站首页</title>
    <style>
        body{
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        .header{
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        .nav{
            display: flex;
            justify-content: center;
            background-color: #f2f2f2;
            padding: 10px 0;
        }
        .nav a{
            text-decoration: none;
            color: #333;
            margin: 0 15px;
            font-size: 18px;
        }
        .nav a:hover{
            color: #007bff;
        }
        .main{
            display: flex;
            justify-content: space-around;
            padding: 20px;
        }
        .product{
            width: 300px;
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
        }
        .product img{
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .product h3{
            margin: 10px 0;
            font-size: 20px;
        }
        .product p{
            font-size: 16px;
            color: #666;
        }
        .product button{
            display: block;
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            margin-top: 10px;
            cursor: pointer;
        }
        .product button:hover{
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>欢迎来到电商网站</h1>
    </div>
    <div class="nav">
        <a href="index.html">首页</a>
        <a href="#">产品分类</a>
        <a href="#">购物车</a>
        <a href="#">我的订单</a>
        <a href="login.html">登录</a>
        <a href="register.html">注册</a>
    </div>
    <div class="main">
        <div class="product">
            <img src="/image/1.jpg" alt="产品1">
            <h3>产品名称1</h3>
            <p>产品描述1</p>
            <button>加入购物车</button>
        </div>
        <div class="product">
            <img src="/image/2.jpg" alt="产品2">
            <h3>产品名称2</h3>
            <p>产品描述2</p>
            <button>加入购物车</button>
        </div>
        <div class="product">
            <img src="/image/3.jpg" alt="产品3">
            <h3>产品名称3</h3>
            <p>产品描述3</p>
            <button>加入购物车</button>
        </div>
    </div>
</body>
</html>